#ifndef GROUPCHATSESSIONDETAIL_H
#define GROUPCHATSESSIONDETAIL_H

#include <QDialog>
#include <QLabel>
#include <QLineEdit>
#include <QObject>
#include <QScrollArea>
#include <QVBoxLayout>
#include <QWidget>
#include"qpushbuttonandqlael.h"
class GroupChatSessionDetailScrollArea:public QScrollArea
{
    Q_OBJECT
public:
    GroupChatSessionDetailScrollArea(QWidget*parent=nullptr);
    void addItem(QPushButtonAndQLael*item);
private:
    QGridLayout*layout;
    QWidget *contain;
    QPushButtonAndQLael*addwidget;
private:
    int row=0;
    int col=1;
};

class GroupChatSessionDetail : public QDialog
{
    Q_OBJECT
public:
    GroupChatSessionDetail(const QString& groupname,QWidget*parent=nullptr);
    void addIemToScrollArea(const QIcon&icon,const QString&text);
private:
    QString groupname;
private:
    QVBoxLayout*mainLayout;
    QHBoxLayout*groupNameLayout;
    GroupChatSessionDetailScrollArea*scrllArea;
    QLabel*groupNameFlag;
    QLabel*groupName;
    QPushButton *groupNameModify;
    QPushButton*editfinish;
    QLineEdit*groupNameLineEdit;
    QWidget*groupWidget;
    QPushButton*quitGruop;
};

#endif // GROUPCHATSESSIONDETAIL_H
